Replace wholenump by natnump for context readability
authorJeremy Bryant <jb@jeremybryant.net>
Mon, 1 Apr 2024 15:39:49 +0000 (16:39 +0100)
committerJustin Burkett <justin@burkett.cc>
Tue, 9 Apr 2024 17:51:38 +0000 (13:51 -0400)
* which-key.el (which-key--width-or-percentage-to-width,
which-key--height-or-percentage-to-height): Use natnump instead of
wholenump.

which-key.el

index 781fee9683cbc13015fa1d0edee0d168e92c56df..820875bfdaf86e6ff8eb4ea22033980905ffb513 100644 (file)
@@ -1170,7 +1170,7 @@ If WIDTH-OR-PERCENTAGE is a whole number, return it unchanged.  Otherwise, it
 should be a percentage (a number between 0 and 1) out of the frame's width.
 More precisely, it should be a percentage out of the frame's root window's
 total width."
-  (if (wholenump width-or-percentage)
+  (if (natnump width-or-percentage)
       width-or-percentage
     (round (* width-or-percentage (window-total-width (frame-root-window))))))
 
@@ -1180,7 +1180,7 @@ If HEIGHT-OR-PERCENTAGE is a whole number, return it unchanged.  Otherwise, it
 should be a percentage (a number between 0 and 1) out of the frame's height.
 More precisely, it should be a percentage out of the frame's root window's
 total height."
-  (if (wholenump height-or-percentage)
+  (if (natnump height-or-percentage)
       height-or-percentage
     (round (* height-or-percentage (window-total-height (frame-root-window))))))